<?php
class Merchant_fabricModel extends BaseModel
{
	var $table  = 'merchant_fabric';
	var $prikey = 'md_id';
	var $_name  = 'merchant_fabric';
	var $_relation = array(
			'belongs_order' => array(
					'model' => 'order',
					'type' => BELONGS_TO,
					'foreign_key' => 'order_id',
					'reverse'  => 'has_merch_fabric',
			),
			'belongs_sample' => array(
					'model' => 'sample',
					'type' => BELONGS_TO,
					'foreign_key' => 'sample_id',
					'reverse'  => 'has_merch_fabric',
			)
	);
}